package org.brownflat.watergate.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * &copy; Rupert Jones 2011
 */
@Component
public class ConfigurationProperties {

    @Value("${database.host}")
    private String jdbcHost = null;

    @Value("${database.port}")
    private String jdbcPort = null;

    @Value("${database.driver}")
    private String jdbcDriver = null;

    @Value("${database.username}")
    private String jdbcUsername = null;

    @Value("${database.password}")
    private String jdbcPassword = null;

    @Value("${database.maxactive}")
    private int jdbcMaxActive;

    @Value("${database.initialsize}")
    private int jdbcInitialSize;

    @Value("${database.maxidle}")
    private int jdbcMaxIdle;

    @Value("${database.minidle}")
    private int jdbcMinIdle;

    @Value("${database.maxwait}")
    private int jdbcMaxWait;

    public String getJdbcHost() {
        return jdbcHost;
    }

    public String getJdbcPort() {
        return jdbcPort;
    }

    public String getJdbcDriver() {
        return jdbcDriver;
    }

    public String getJdbcUsername() {
        return jdbcUsername;
    }

    public String getJdbcPassword() {
        return jdbcPassword;
    }

    public int getJdbcMaxActive() {
        return jdbcMaxActive;
    }

    public int getJdbcInitialSize() {
        return jdbcInitialSize;
    }

    public int getJdbcMaxIdle() {
        return jdbcMaxIdle;
    }

    public int getJdbcMinIdle() {
        return jdbcMinIdle;
    }

    public int getJdbcMaxWait() {
        return jdbcMaxWait;
    }
}
